# # 1 打开open（）
# import os
# import sys
#
# f = open('test.txt','a')
# #2 读写操作 write（）read（）
# f.write('zyx')
# #3 关闭close（）
# f.close()
# print(os.getcwd())
# print(os.path.abspath(r"test.txt"))
# fileinfo = os.stat("test.txt")
# print("文件完整路径：",os.path.abspath("test.txt"))
# print("索引号：",fileinfo.st_ino)
# print("设备名：",fileinfo.st_dev)
#
#
# # class Master(object):
# #     def __init__(self):
# #         self.kongfu = '[古法煎饼果⼦配⽅]'
# #     def make_cake(self):
# #         print(f'运⽤{self.kongfu}制作煎饼果⼦')
# # # 创建学校类
# # class School(object):
# #     def __init__(self):
# #         self.kongfu = '[⿊⻢煎饼果⼦配⽅]'
# #     def make_cake(self):
# #         print(f'运⽤{self.kongfu}制作煎饼果⼦')
# # class Prentice(School, Master):
# #     pass
# # daqiu = Prentice()
# # print(daqiu.kongfu)
# # daqiu.make_cake()
#
# class Master(object):
#     def __init__(self):
#         self.kongfu = '[古法煎饼果⼦配⽅]'
#     def make_cake(self):
#         print(f'运⽤{self.kongfu}制作煎饼果⼦')
# class School(object):
#     def __init__(self):
#         self.kongfu = '[⿊⻢煎饼果⼦配⽅]'
#
#     def make_cake(self):
#         print(f'运⽤{self.kongfu}制作煎饼果⼦')
#
# class Prentice(School, Master):
#     def __init__(self):
#         self.kongfu = '[独创煎饼果⼦配⽅]'
#     def make_cake(self):
# # 如果是先调⽤了⽗类的属性和⽅法，⽗类属性会覆盖⼦类属性，故在调⽤属性前，先调⽤⾃⼰⼦类的初始化
#         self.__init__()
#         print(f'运⽤{self.kongfu}制作煎饼果⼦')
#     # 调⽤⽗类⽅法，但是为保证调⽤到的也是⽗类的属性，必须在调⽤⽅法前调⽤⽗类的初始化
#     def make_master_cake(self):
#         Master.__init__(self)
#         Master.make_cake(self)
#     def make_school_cake(self):
#         School.__init__(self)
#         School.make_cake(self)
# daqiu = Prentice()
# daqiu.make_cake()
# daqiu.make_master_cake()
# daqiu.make_school_cake()
# daqiu.make_cake()
#
# print(sys.path)
import shutil

shutil.copy('test.txt', 'a.txt')